home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
snack_attack.swf
/
scripts
/
DefineSprite_233
/
frame_17
/
DoAction.as
Wrap
Text File
|
2010-11-09
|
541b
|
32 lines
i = "1";
found = "0";
while(i < "5")
{
if(getProperty("r" add i, _currentframe) == "1")
{
found += "1";
set("item" add found,"r" add i);
}
i += "1";
}
if(found == "0")
{
i = "1";
while(i < "3")
{
if(getProperty("l" add i, _currentframe) == "1")
{
found += "1";
set("item" add found,"l" add i);
}
i += "1";
}
}
toDrop = eval("item" add (random(found) + "1"));
items -= "1";
tellTarget(toDrop)
{
gotoAndStop("right");
play();
}